//
//  AddressTableViewCellList.m
//  地址选择用法
//
//  Created by 孙鹏飞 on 2017/4/11.
//  Copyright © 2017年 homai. All rights reserved.
//

#import "AddressTableViewCellList.h"
#import "AddressItem.h"

@interface AddressTableViewCellList ()
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
@property (weak, nonatomic) IBOutlet UIImageView *selectFlag;
@end
@implementation AddressTableViewCellList

- (void)setItem:(AddressItem *)item{
    
    _item = item;
    _addressLabel.text = item.name;
    _addressLabel.textColor = item.isSelected ? [UIColor orangeColor] : [UIColor blackColor] ;
    _selectFlag.hidden = !item.isSelected;
}

- (void)setBlankString:(NSString *)blankString{
    _addressLabel.text = blankString;
}

@end
